/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.icinfo.framework.mybatis.mapper.annotation.Before;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 描述: 案件文书记录表-TRJ case_document_record_his 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年02月28日
 */
@Table(name = "upcase.case_document_record_his")
@Data
public class CaseDocumentRecordHis implements Serializable {
    /**
     * 文书记录表id
     */
    @Id
    @Column(name = "id")
    private String id;

    @Column(name = "record_id")
    private String recordId;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 案件阶段名称
     */
    @Column(name = "case_stage_name")
    private String caseStageName;

    /**
     * 案件阶段编码
     */
    @Column(name = "case_stage_code")
    private String caseStageCode;

    /**
     * 案件环节名称
     */
    @Column(name = "case_link_name")
    private String caseLinkName;

    /**
     * 案件环节编码
     */
    @Column(name = "case_link_code")
    private String caseLinkCode;

    /**
     * 文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 文书地址
     */
    @Column(name = "document_url")
    private String documentUrl;

    /**
     * 文书创建时间
     */
    @Column(name = "document_create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date documentCreateTime;

    /**
     * 文书审核状态
     */
    @Column(name = "document_approval_status")
    private String documentApprovalStatus;

    /**
     * 文书送达状态
     */
    @Column(name = "document_sent_status")
    private String documentSentStatus;

    /**
     * 文书签字捺印状态
     */
    @Column(name = "document_signstamped_status")
    private String documentSignstampedStatus;

    /**
     * 文书内容
     */
    @Column(name = "document_content")
    private String documentContent;

    /**
     * 文书审核状态：notSubmit 待提交 ，pending  审批中  ，pass 审核完成通过，return 审核完成退回 
     */
    @Column(name = "document_audit_status")
    private String documentAuditStatus;

    /**
     * 文书文号
     */
    @Column(name = "document_number")
    private String documentNumber;

    /**
     * 盖章后文书地址
     */
    @Column(name = "document_url_after_seal")
    private String documentUrlAfterSeal;

    /**
     * 签字后文书地址（当事人）
     */
    @Column(name = "document_url_after_sign")
    private String documentUrlAfterSign;

    /**
     * 签字时间（当事人）
     */
    @Column(name = "sign_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date signTime;

    /**
     * 送达时间
     */
    @Column(name = "sent_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sentTime;

    /**
     * 历史记录添加时间
     */
    @Column(name = "his_create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date hisCreateTime;
    /**
     * 审批通过时间
     */
    @Column(name = "document_approval_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime documentApprovalTime;
    /**
     * 动作
     */
    @Column(name = "op")
    private String op;
    /**
     * 创建人姓名
     */
    @Column(name = "create_user_name")
    private String createUserName;
    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;
    /**
     * 案件副流程id
     */
    @Column(name = "case_assist_id")
    private String caseAssistId;
    /**
     * 文书模版编码
     */
    @Column(name = "document_template_code")
    private String documentTemplateCode;

    private static final long serialVersionUID = 1L;


}